home *** CD-ROM | disk | FTP | other *** search
- .f3 - # - Chapter 14 - TOC
- .rm70
- .tc.cp8
- .tc
- .tc 14. TABLE OF CONTENTS .................................#
- CHAPTER 14 TABLE OF CONTENTS
-
- .imTable Of Contents
- Many documents you produce will require a table of contents. This can
- be achieved by identifying the table of contents entries, and
- executing a Generate Table Of Contents command (Ctrl F5). The table of
- contents files have the same name as the file you are generating for,
- but have the extension .TOC for the main one and the extensions .TO1
- up to .TO9 for the ancillary ones. Only those files you request will
- be produced.
-
- .imDot Commands
- .ixDot Commands; .FI - include file
- Table of contents files can be included in your document by use if the
- file include (.FI) dot command, and if so included, will be printed
- when you print the document. However, if you change the document, you
- will need to re-create the table of contents files, since this is not
- done automatically.
-
- Level Numbers can be generated automatically if you wish, or you can
- put them in yourself. Automatic level numbers can be numbers, letters
- or Roman numerals.
-
- .tc Identifying Table of Contents Entries ..............#
- .ixTable Of Contents;Table Of Contents
- .ixTable Of Contents; Identifying entries for
- Identifying Table of Contents Entries
-
- .ixDot Commands; .TC - Table of Contents
- Before you can generate a table of contents, you need to identify each
- entry that you want in the table of contents. This is done with the
- .TC dot command. Separate each entry from the dot command by at least
- one space. If you wish to include the page number, merely put the
- character # in the line where you wish it to print. You can include
- special print control functions and characters for special effects
- during printing. To indent an entry in the table of contents, just put
- extra spaces after the TC
-
- for example:
-
- .TC INTRODUCTION.............................#
-
- .TC Part 1..............................#
-
- Your table of contents entries will look like this:
-
- INTRODUCTION.............................1
- Part 1..............................2
-
-
- If you follow the dot command immediately by a number 1 to 9, the
- table of contents line will not be written to the .TOC file, but
- instead to a separate file with the extension .TO1 to .TO9 depending
- on the digit. This allows you more flexibility in generating tables of
- contents, for example a separate list of tables, a separate list of
- illustrations and so on.
-
- .CP10
- for example:
-
- .TC1 figure 1.1 Sales vs Expenditure ... #
- .tc2 table 1.1 Sales vs Expenditure ... #
-
- will produce in file.TO1 the line
-
- figure 1.1 Sales vs Expenditure ... 4
-
- and in file.TO2 the line
-
- table 1.1 Sales vs Expenditure ... 4
-
- assuming that the page number is 4.
-
- .ixTable Of Contents;Table Of Contents
- Word Fugue will gather all the entries for a numbered .TC command and
- place them into separate files. All these files have the same name as
- the original document, but the extension is set to a numbered
- extension: .TO1 , .TO2 and so on.
-
- .tc Automatic Level Numbering ..........................#
- .ixTable Of Contents; Automatic Level Numbering
- Automatic Level Numbering
-
- Level numbers can be generated automatically by use of the @L print
- function. You can have up to 9 different level numbers, in differing
- types and styles. This is discussed more fully below. You place the
- level number in brackets : {.@L1} for level 1 to {.@L9} for level 9.
- They will be expanded at printing or TOC generation, depending whether
- they are in the text body or the .TC lines.
-
- .tc Style of Numbering ..............................#
- .ixTable Of Contents; Style of Numbering
- Style of Numbering
-
- Style can be any of Office, Decimal (default), or Nodot.
-
- Office prints only one number for each level, followed by a dot.
- Thus:
-
- {.@L1}
- {.@L2}
- {.@L3}
-
- gives
- 1.
- 1.
- 1.
-
- NoDot is similar to Office, except that the dot (.) is not printed.
- Thus:
-
- {.@L1}
- {.@L2}
- {.@L3}
-
- gives
- 1
- 1
- 1
-
- .CP9
- Decimal produces all levels separated by dots (.)
- Thus:
-
- {.@L1}
- {.@L2}
- {.@L3}
-
- gives
-
- 1.
- 1.1.
- 1.1.1.
-
-
- .ixTable Of Contents;Table Of Contents
- .ixDot Commands; .TS - TOC number Style
- You set this with the .TS command
-
- .TS O for Office
- or .TS D for Decimal
- or .TS N for Nodot
-
- The style you last set remains in effect for all level numbers until
- you change it. Thus if you wish to have decimal numbering for the
- first three levels, and Office numbering for the remainder, you will
- need to use .TS D when you start, .TS O when you reach level 4, and
- .TS D when you return to a level lower than 4. You will need to
- continue toggling the style throughout the document.
-
- .tc Types of Numbering ..............................#
- .ixTable Of Contents; Type of Numbering
- .ixDot Commands; .TL - Type of Numbering
- Types of Numbering
-
- Each level can have its own type of numbering, independent of all
- the other levels. The available types of numbering are:-
-
- R Roman uppercase eg III.
- r roman lowercase eg iii.
- N or n Numeric (default) eg 3.
- A Alphabetic uppercase eg C.
- a alphabetic lowercase eg c.
-
- You set this with the .TL command:
-
- .TLn x
- where n is 1 to 9 (the level)
- x is R,r,N,n,A,a (as above)
-
- NOTE These letters are case sensitive, so that r (lowercase) will
- give lowercase Roman, while R (uppercase) will give uppercase
- Roman.
-
- .tc Set Start Numbers ...............................#
- .ixTable Of Contents; Set Start numbers
- Set Start Numbers
-
- Each level defaults to starting at number 1. However, you can start
- each level at a different number, eg if you have divided your
- document up into different parts, and only want to print a part of
- it.
-
- Note that referencing a lower numbered level will automatically
- reset all higher numbered levels to 1.
-
- For alphas, use the equivalent number eg a = 1, b=2, z=26 etc. The
- level number is always stored internally as a number, and is
- converted on printing to the appropriate text.
-
- .CP5
- .ixDot Commands; .TN - Start TOC number
- .ixTable Of Contents;Table Of Contents
- You set this with .TN command:
-
- .TNn i
- where n is 1 to 9 (the level)
- i is the start number
-
- .tc Space Reserved For Numbers.......................#
- .ixTable Of Contents; Space reserved for numbers (.TW)
- Space Reserved For Numbers
-
- By default, Word Fugue reserves 8 characters in which to fit the
- style numbers is generates. This means that each number generated
- will be padded out to 8 characters if it is shorter. Sequences
- longer than 8 characters are left as is.
-
- Substitution of the style number deletes the characters that were
- used to generate the number, and then inserts the generated style
- number, padded to 8 characters if it were shorter.
-
- .ixDot Commands; .TW - Space reserved for TOC number
- You can change the amount of space reserved if you wish. You do this
- by means of the .TW command.
-
- .TW n
- where n is the number of characters to reserve
- (from 1 to 25 characters). Subsequent style
- numbers will be padded out to the length
- specified.
-
- .tc Examples ........................................#
- Examples
-
- OFFICE
-
- .TS Office
- .TL2 r
- .tl3 a
- {.@L1} this is level 1
- {.@L2} this is level 2
- ({.@L3}) this is level 3
-
- produces
-
- 1. this is level 1
- i. this is level 2
- (a.) this is level 3
-
-
- .CP14
- NODOT
-
- .TS Nodot
- .TL2 r
- .tl3 a
- {.@L1} this is level 1
- {.@L2} this is level 2
- ({.@L3}) this is level 3
-
- produces
-
- 1 this is level 1
- i this is level 2
- (a) this is level 3
-
-
- .CP8
- DECIMAL
-
- .TS Decimal
- .TL2 r
- .tl3 a
- {.@L1} this is level 1
- {.@L2} this is level 2
- ({.@L3}) this is level 3
-
- produces
-
- 1. this is level 1
- 1.i. this is level 2
- (1.i.a.) this is level 3
-
-
- .ixTable Of Contents;Table Of Contents
- Embed the commands in the .TC lines for the correct numbers to
- appear in table of contents.
-
- .tc {.@L1} this is level 1 ................... #
- {.@L1} this is level 1
- .tc {.@L2} this is level 2 .................. #
- {.@L2} this is level 2
- .tc ({.@L3}) this is level 3 ............. #
- ({.@L3}) this is level 3
-
-
- .ixTIPS; printing a print function name
- TIP - How did we get the print functions themselves to print here,
- rather than the results of their evaluation? Simple, we placed 2
- print control characters between the "{" and the "." like this
- {<B><B>. where <B> stands for the ctrl B character.
-
- .CP5
- .tc Producing a Table of Contents ......................#
- .ixTable Of Contents; Generating
- Producing a Table of Contents
-
- To produce the table of contents, enter the command Ctrl F5. You will
- be prompted for the name of the file for which to generate the TOC.
- Enter the name of the file. Note if you are working on the file,
- please save it first so that the up to date version is used.
- Production of tables of contents happen in foreground, so you will not
- be able to do any editing while this happens. However, table of
- contents generation usually takes no more than a few seconds.
-
- Word Fugue will gather all the entries for a numbered .TC command and
- place them into separate files. All these files have the same name as
- the original document, but the extension is set to a numbered
- extension: .TO1 , .TO2 and so on.
-
- These files should be included in your document via the .FI command.
-
- .ixTable Of Contents;Table Of Contents
- .ixTIPS; Tables of Contents for Books
- TIP - if you are writing a book or similar, with several chapters, set
- each chapter up as a separate file, and create a master file
- that includes each chapter, table of contents & index file by
- use of .FI commands. Generate the table of contents for the top
- level file, and all lower level files will be included.